package com.ray.basic;

public class demo3 {
    public static void main(String[] args) {
        demo3 de = new demo3();
        System.out.println(de.getGrade3(90));

        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 10; j++) {
                System.out.println("i=" + i + ",j=" + j);
                if (j == 5) {
                    continue;
                }
                System.out.println("i" + i + "j" + j);
            }
        }

    }

    public String getGrade(int num){
        if(num <60){
            return "不及格";
        }
        if(num <80){
            return "良";
        }
        return "优";
    }


    public String getGrade2(int num){
        if(num <60) return "不及格";
        if(num <80) return "良";
        return "优";
    }

    public String getGrade3(int num){
        return num <60?"不及格":num <80?"良":"优";
    }
}
